package com.itheima.service.impl;

import com.itheima.service.UserService;

/**
 * @author wz
 * @description:
 * @date 2021-10-30
 */
public class UserServiceImpl2 implements UserService {
    private String userName;
    private Integer age;

    public UserServiceImpl2(String userName, Integer age) {
        this.userName = userName;
        this.age = age;
    }

    @Override
    public void add() {
        System.out.println("service add run ....");
    }

    public void initUser(){
        System.out.println("init user ....");
    }

    public void destroyUser(){
        System.out.println("destroy user ....");
    }

    @Override
    public String toString() {
        return "UserServiceImpl2{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }
}
